package com.youzikj.wx.core.service;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.youzikj.wx.core.dao.UserDao;
import com.youzikj.wx.core.pojo.User;

@Service
public class UserServiceImpl {
	
	@Autowired
	private UserDao dao;
	/**
	 * 添加用户
	 */
	public void addUser(User user){
		dao.add(user);
	}
	
	/**
	 * 查询推广用户
	 */
	public List<User> query(Integer taskId, Integer subId){
		return dao.query(taskId, subId);
	}

}
